const express = require('express');
const app = express();
const bodyParser = require('body-parser');
app.use(bodyParser.urlencoded({ extended: false }));
const cors = require('cors')
app.use(cors())
const router = require('./router.js');
app.use(router);
app.listen(3000, () => {
    console.log('api server running at http://127.0.0.1:3000')
})